<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC__/css/admin.css">
<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 分类列表</strong></div>
  <div class="padding border-bottom">  
  <button type="button" class="button border-yellow" onclick="window.location.href='#add'"><span class="icon-plus-square-o"></span> 添加分类</button>
  </div>
  <table class="table table-hover text-center">
    <tr>
      <th width="10%">ID</th>
      <th width="10%">名字</th>
      <th width="15%">操作</th>
    </tr>
   <volist name="res" id="vo" key="k">
        <tr>
            <td style="text-align:left; padding-left:20px;">
                {$k}
            </td>
            <td>{$vo.name}
            </td>
            <td>
              <div class="button-group">
                <a class="button border-main" href="__URL__/classSet/id/{$vo.class_id}"><span class="icon-edit"></span> 修改</a>
                <a class="button border-red" href="__URL__/cDel/id/{$vo.class_id}"><span class="icon-trash-o"></span> 删除</a>
              </div>
            </td>
          </tr>
  </volist>

  </table>
</div>

<div class="panel admin-panel margin-top" id="add">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加分类</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="__URL__/classAdd">    
      <div class="form-group">
        <div class="label">
          <label>名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="name" data-validate="required:请输入名称" />
          <div class="tips"></div>
        </div>
      </div>


      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <input class="button bg-main icon-check-square-o" type="submit"  value="提交" /> 
        </div>
      </div>

    </form>
  </div>
</div>
</body></html>